import Layout from '@/layout'

export default [
  {
    path: '/departStaff',
    component: Layout,
    redirect: "/departStaff/department",
    meta: {title: '部门人员', icon: 'example'},
    children: [
      {
        path: 'department',
        redirect: "/departStaff/department/index",
        component: () => import('@/views/departStaff/department/Index'),
        meta: {title: '部门管理', icon: 'table'},
        children: [
          {
            path: 'index',
            component: () => import('@/views/departStaff/department/List'),
            hidden: true,
          },
          {
            path: 'add',
            component: () => import('@/views/departStaff/department/Add'),
            meta: {title: '添加'},
            hidden: true,
          },
          {
            path: 'edit',
            component: () => import('@/views/departStaff/department/Edit'),
            meta: {title: '编辑'},
            hidden: true,
          },
        ]
      },
      {
        path: 'employees',
        redirect: "/departStaff/employees/index",
        component: () => import('@/views/departStaff/employees/Index'),
        meta: {title: '员工管理', icon: 'table'},
        children: [
          {
            path: 'index',
            component: () => import('@/views/departStaff/employees/List'),
            hidden: true,
          },
          {
            path: 'add',
            component: () => import('@/views/departStaff/employees/Add'),
            meta: {title: '添加'},
            hidden: true,
          },
          {
            path: 'edit',
            component: () => import('@/views/departStaff/employees/Edit'),
            meta: {title: '编辑'},
            hidden: true,
          },
        ]
      },
    ]
  },
]
